<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>登录</title>
    <link rel="shortcut icon" type="image/x-icon" th:href="@{'/static/images/favicon.ico'}" media="screen" />

    <link rel="stylesheet" th:href="@{/static/css/login.css}" />
</head>
<body>

<div class="login-box">
    <h2>会员登录</h2>
    <form  id="loginForm" method="post" th:action="@{/login}">
        <div class="user-box">
             <input type="text" name="user" required="" />
            <label>用户名</label>
        </div>
        <div class="user-box">
            <input type="password" name="pw" required="" />
            <label>密码</label>
        </div>
        <input name="url" type="text" hidden="hidden" th:value="${url}" th:if="${url!=null}" />
        <span th:if="${msg!=null}" th:text="${msg}"></span>
        <a  onclick="document.getElementById('loginForm').submit();">
            <span></span>
            <span></span>
            <span></span>
            <span></span>
            登录
        </a>
    </form>
</div>
</body>
</html>